-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: introduce @auth/prisma-adapter
#7703
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* feat: map Account before saving to database * document `acconut()`, explain default behaviour * generate `expires_at` based on `expires_in` Fixes #6538 * rename * strip undefined on `defaultProfile` * don't forward defaults to account callback * improve internal namings, types, docs
* JWT Token -> JWT * document some errors * improve errors, docs
Reverts some changes on #7369 so DB migration won't be needed
Co-authored-by: Nico Domino <yo@ndo.dev>
* feat: add update session to core Integrates #7056 into `@auth/core` * resolve default user after jwt callback
fix: moves next config file into the correct directory
Add Descope as a bronze sponsor
* bump Nuxt to 3.5.1 * follow playground package names * chore: update nuxt playground scripts * fix: imports and types * fix: more nuxt type imports * fix: nuxt auth options types * fix: nuxt client fetch types
Info box is not being rendered; the raw `:::info` is displayed. Blind guess: it needs a blank line before it.
@SocketSecurity ignore @prisma/engines@4.15.0 |
balazsorban44
requested review from
ubbe-xyz,
ndom91 and
ThangHuuVu
as code owners
June 1, 2023 13:33
balazsorban44
added a commit
that referenced
this pull request
Jun 1, 2023
BREAKING CHANGE: If you are coming from the previous adapter, change your `package.json`: ```diff - "@next-auth/prisma-adapter": "0.0.0", + "@auth/prisma-adapter": "0.0.0", ``` And run `npm install`, `yarn install` or `pnpm install` respectively. **Note:** This packages is published as ESM-only.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Database adapters are not dependent on Next.js features, so it makes sense to republish them under the
@auth/*
scope.This PR is the first of many, to convert adapters, using
@auth/core
for types.To upgrade, in your package.json:
And run
npm install
,yarn install
orpnpm install
respectively.Note: This packages is now published ESM-only.